<template>
  <span>{{ moduleName }}</span>
</template>
<script>
export default {
  data() {
    return { moduleName: null }
  },
  beforeMount() {
    const modules = this.$store.getters.modules
    for (let i = 0; i < modules.length; i++) {
      if (modules[i].AutoId === this.params.value) {
        this.moduleName = modules[i].Name
        return
      }
    }
    if (this.moduleName === null) {
      this.moduleName = '未知'
    }
  }
}
</script>